<?php
class test_ajax_ctr extends CI_Controller 
{
    public function __construct() {
        parent:: __construct();
        $this->load->helper("url");
        $this->load->model("pagination_mdl");
        $this->load->library("pagination");
		
    }
 
    public function index() {
		
		$this->load->view('test_ajax_vew'); 
       
    }
	 public function test() {
		
		 $login = $_POST["login"];
	    $msg = $_POST["msg"];
	    echo "<br/>$login a écrit le ".date("d-m-Y G:i:s").":<br/><i>$msg</i><br/>";
       
    }
	
	
}